import {ApiProperty} from "@nestjs/swagger";
import {IsDateString, IsNotEmpty, IsUUID, MaxLength, MinLength} from "class-validator";

export class CreateHouseworkDto {
    @IsNotEmpty()
    @IsUUID()
    @ApiProperty()
    companyId: string;
    @IsNotEmpty()
    @IsUUID()
    @ApiProperty()
    userId: string;
    @IsNotEmpty()
    @IsUUID()
    @ApiProperty()
    serverId: string;
    @ApiProperty()
    isCount?: number;
    @ApiProperty()
    @IsDateString()
    serverTime: Date;
    @ApiProperty()
    @IsNotEmpty()
    @MinLength(6)
    @MaxLength(50)
    address: string;
}
